<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/react@17/umd/react.production.min.js" rel="external nofollow" rel="external nofollow"></script>

    <script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js" rel="external nofollow" rel="external nofollow"></script>

    <script src="https://unpkg.com/babel-standalone@6/babel.min.js" rel="external nofollow" rel="external nofollow"></script>
</head>

<body>
    <div id="test"></div>
    <script type="text/babel">
        /* 一定区分：[js语句]与[js表达式] 1. 表达式：一个表达式会产生一个值，可以放在任何一个需要值的地方 */ const data=['html','css','js']; const VDOM=(
        <div>
            <h1>前端js框架列表</h1>
            <ul>
                { data.map((item,index)=>{ return
                <li key={index}>{item}</li>

                })}
            </ul>
        </div>
        ); ReactDOM.render(VDOM,document.getElementById('test'));
    </script>
</body>

</html>